<?php 

$status	= $this->formTextarea('status',"",array('class'=>'txtmedium', 'rows' => '4','placeholder'=>"chia sẻ trạng thái của bạn!"));
$linkImg = $this->imgUrl.'/imgs/';
?>
<div class="container">
	<div class="right-container">
		<?php echo $this->render('index/categories/rightNavigation.php')?>
	</div>
	<div class="center-container">
	<form name="appForm" method="post" action="" enctype="multipart/form-data">
		<div class="update-status">
			<div class="title-status">Cập nhật trạng thái</div>
			<?php echo $status?>
			<input type="file" readonly="readonly" value="anh" name="anh">
			<button
				onclick="OnSubmitForm('<?php echo $this->baseUrl($this->currentController.'/add-status') ?>')"
				style="float: right; margin-right: 100px; background: #3380CC; border-radius: 8px; width: 80px; height: 35px; color: white">chia
				sẻ</button>
		</div>

		<div class="content-container" >
			<?php foreach($this->Items as $key=>$value){?>
			<div class="content-container-article">
				<div class="left-article">
					<img src="<?php echo $this->imgUrl?>/imgs/stingdau.jpg" />
				</div>
				<div class="right-article" style="position:relative">
					<img onclick="OnSubmitForm('<?php echo $this->baseUrl($this->currentController.'/delete/id/'.$value['id']) ?>')" 
					alt="" src="<?php  echo $linkImg.'button_cancel.png' ?>" style="position:absolute ;right:0px;margin-right:20px;" >
					<div class="nameUserPost"><?php echo $value['user']?></div>
					<div class="contentPost"><?php echo $value['status']?></div>
					<span style="font-size: 12px; color: #3B5998; margin-top: 10px">Thích</span>
					<span style="font-size: 12px; color: #3B5998; margin-top: 10px">Bình
						luận</span> <span
						style="font-size: 12px; color: #999; margin-top: 10px">một giờ
						trước</span>
					<textarea rows="1" placeholder="nhập bình luận! "></textarea>
				</div>
			</div>
			<div class="clear"></div>
			<?php } ?>
		</div>
		<!-- BEGIN: PAGINATION (FOOT) -->
		<div style="float:right;margin-right:160px;margin-top:10px;">
		<?php 
		$currentUrl = $this->baseUrl($this->currentController . '/index');
		echo $this->paginationControl($this->panigator,'Sliding','pagination.phtml',array('currentUrl'=>$currentUrl));
		?>
		</div>
		<!-- END: PAGINATION (FOOT) -->
	</form>
	</div>
	

	<?php echo $this->render('index/categories/index.phtml')?>
</div>
